package com.zapta.apps.maniana.model;

import java.util.HashSet;

public class IDSetModel extends HashSet<String> {
	private static final long serialVersionUID = -1657909631399473093L;
	
	public void addIDsFromPage(AppModel appModel, PageKind pageKind) {
    	int iEnd = appModel.getPageItemCount(pageKind);
   		for(int i=0; i < iEnd; i++) {
   			ItemModelReadOnly item = appModel.getItemReadOnly(pageKind, i);
			this.add(item.getId());
		}		
	}

}
